package com.zbs.framework.swagger.config;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

@ToString
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Docket {

    /**
     * 全局类
     */
    private Class<?> clazz;

    /**
     * 全局参数指定字段存储
     */
    private String dataFiled;


    private Map<String,String> errorMsgMap = new HashMap<>();


    public static Docket build(){
        return new Docket();
    }

    public Docket errorMsgMap(Map<String,String> errorMsgMap) {
        this.errorMsgMap = errorMsgMap;
        return this;
    }

    public Docket clazz(Class<?> clazz) {
        this.clazz = clazz;
        return this;
    }

    public Docket dataFiled(String dataFiled) {
        this.dataFiled = dataFiled;
        return this;
    }
}
